﻿using FreeSql.DatabaseModel;using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Newtonsoft.Json;
using FreeSql.DataAnnotations;

namespace Simple.Repository.SimpleEntitys {

	/// <summary>
	/// 长者默认照护人员
	/// </summary>
	[JsonObject(MemberSerialization.OptIn), Table(Name = "elderly_care_worker", DisableSyncStructure = true)]
	public partial class ElderlyCareWorker {

		/// <summary>
		/// 主键
		/// </summary>
		[JsonProperty, Column(Name = "id", DbType = "bigint", IsPrimary = true, IsIdentity = true)]
		public long Id { get; set; }

		/// <summary>
		/// 公司Id
		/// </summary>
		[JsonProperty, Column(Name = "company_id", DbType = "bigint")]
		public long CompanyId { get; set; }

		/// <summary>
		/// 长者Id
		/// </summary>
		[JsonProperty, Column(Name = "elderly_id", DbType = "bigint")]
		public long ElderlyId { get; set; }

		/// <summary>
		/// 照护员工Id
		/// </summary>
		[JsonProperty, Column(Name = "employee_id", DbType = "bigint")]
		public long EmployeeId { get; set; }

		/// <summary>
		/// 照护员名称
		/// </summary>
		[JsonProperty, Column(Name = "employee_name", IsNullable = false)]
		public string EmployeeName { get; set; }

	}

}
